//=============================================================================
// Claw Tiremine Attachement
//=============================================================================
class ClawFiremineAttachment extends xWeaponAttachment;

var Bool bCheckForTeamSkins;                   // Bool to check to see if we need blue team skins or not

Simulated Function Tick(Float DeltaTime)
{
   // Use this to swap in our blue team skins for Proxy if its a team game
   if (bCheckForTeamSkins && Instigator != None && Instigator.PlayerReplicationInfo != None
   && Instigator.PlayerReplicationInfo.Team != None)
   {
           // implys a team game
           if(Instigator.PlayerReplicationInfo.Team.TeamIndex == 1)
           {
               // found a blue player so change all skins:
               Skins[0]=Shader'TFMedia.Mines.Minelauncher_Shade';
               Skins[1]=Shader'TFMedia.Mines.Fireminepickup_Shade';
               bCheckForTeamSkins=false;
           }
           else
             bCheckForTeamSkins=false;      // red team is default skin, instaigator is on red team, so dont change a thing
    }
}

defaultproperties
{
     bCheckForTeamSkins=True
     bHeavy=True
     LightType=LT_Steady
     LightEffect=LE_NonIncidence
     LightHue=30
     LightSaturation=150
     LightBrightness=150.000000
     LightRadius=4.000000
     Mesh=SkeletalMesh'TripMineA.Chaos_minel_firem_3rd'
}
